package invoicesystem.service.impl;

import invoicesystem.dao.OrderDao;
import invoicesystem.dao.impl.OrderDaoImpl;
import invoicesystem.entry.*;
import invoicesystem.pojo.OrderForm;
import invoicesystem.service.OrderService;

import java.util.ArrayList;

public class OrderServiceImpl implements OrderService {

    OrderDao orderDao = new OrderDaoImpl();

    @Override
    public ArrayList selectSum(Integer enterprise_id) {
        return orderDao.selectSum(enterprise_id);
    }

    @Override
    public ArrayList<Order> selectOrderByNoOrTotal_amountOrCreate_time(Order order) {
        return null;
    }

    @Override
    public ArrayList<Order> selectByidAndSttausA(int eid) {
        return orderDao.selectByidAndSttausA(eid);
    }
    @Override
    public ArrayList selectOrder(Integer enterprise_id) {
        return orderDao.selectSum(enterprise_id);
    }

    @Override
    public ArrayList<Order> selectByidAndSttausB(int eid) {
        return orderDao.selectByidAndSttausB(eid);
    }

    @Override
    public ArrayList<Order> selectAll(Order order, OrderForm orderForm) {
        return orderDao.selectAll(order,orderForm);
    }



    @Override
    public boolean updateOrder(int enterprise_id, String no) {
        return orderDao.updateOrder(enterprise_id,no);
    }



    @Override
    public boolean updateOrderno(String no) {
        return orderDao.updateOrderno(no);
    }

}
